package ac.il.technion.cs236635.project.test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ThreadTermination {

	public static void main(String[] args) {
		try {
			ThreadJob job = null;
			Thread thread = new Thread( job = new ThreadJob( 100));
			thread.start( );
			BufferedReader reader = new BufferedReader( new InputStreamReader( System.in));
			System.out.println( "Waiting");
			reader.readLine( );
			job.finish( );
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}